package com.yellowframework.cloud.common.autoconfigure;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 外部配置属性
 * @author zhou
 * @since  2021/6/16 11:14
 */
@Component
public class CommonProperties {

    public static Path path;

    public CommonProperties(Path path){
        CommonProperties.path = path;
    }

    @Data
    @Component
    @ConfigurationProperties("yellow.cloud.common.path")
    public static class Path {

        /** 匿名的路径 */
        private List<String> anon = new ArrayList<>();
    }
}
